package grape.wx.rest.mp.basic.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * Created by yangwei
 * Created at 2020/8/12 15:21
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel("文件上传表单")
public class UploadFileForm extends BaseForm {

    @NotNull(message = "上传文件不能为空")
    @ApiModelProperty(value = "上传的文件",required = true,dataType = "__file")
    private MultipartFile file;
}
